package com.cgc.venus.server.app.service;

import com.cgc.venus.server.app.inter.DemoService;
import com.cgc.venus.server.core.bean.response.VenusResponseStatus;
import com.cgc.venus.server.core.exception.VenusException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/9/1.
 */
@Service
public class DemoServiceImpl implements DemoService {
    @Autowired
    private JdbcTemplate jdbcTemplate;
    @Override
    public String sayHello(String content) throws VenusException {
        System.out.println("Hello " + content);
        if(content.equals("123"))
        throw new VenusException(VenusResponseStatus.NO_CONTENT,"用户信息为空");
        return "Hello " + content;
    }
}
